//Print the largest prime number possible in java
class prog11
	{
	public static void main(String [] args)
		{
		byte h=getHighestPrime();
		displayHighestPrime(h);
		}
	public static byte getHighestPrime()
		{
		unsigned byte n,count,h=0;
		for(n=1;n!=0;n++)
			{
			count=0;
			for(int i=1;i<=n && count<=2;i++)
				if(n%i==0)
					count++;
			if(count==1 || count==2)
				h=n;	
			}
		return h;
		}
	public static void displayHighestPrime(long num)
		{
		System.out.println("The highest prime number available in Java is : " + num);
		}
	}